<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>52.事件和事件绑定</title>
    <style>
        .box{
            width: 300px;
            height: 300px;
            border: 1px solid;
        }
        .outer{
            width: 200px;
            height: 200px;
            border: 1px solid;
        }
        .inner{
            width: 100px;
            height: 100px;
            border: 1px solid;
        }
    </style>
</head>
<body>
    <div id="app"></div>
    <div class="box">
        <div class="outer">
            <div class="inner"></div>
        </div>
    </div>
    <script>
        // let app = document.querySelector('#app')

        // let n = null
        // window.addEventListener('click', function (e) {
        //     n = e
        //     console.log(e)
        // })
        // window.addEventListener('click', function (e) {
        //     console.log(n=== e)
        //     console.log(e)
        // })
        // window.addEventListener('touchstart', function(e) {
        //     console.log(e)
        // })
    </script>
</body>
</html>